#include <bits/stdc++.h>

using namespace std;
typedef long double db;
db a1, b1, Y1, a2, b2, y2, a3, b3, y3;

bool check(db a, db b, db c, db d)
{
    if (a > c) swap(a, c), swap(b, d);
    return c <= b;
}

inline void solve()
{
    db xx = (y3 - y2) / (Y1 - y2) * (b1 - a2) + a2;
    db yy = (y3 - y2) / (Y1 - y2) * (a1 - b2) + b2;
    if (check(xx, yy, a3, b3)) puts("Yes");
    else puts("No");
}

signed main()
{
    while (cin >> a1 >> b1 >> Y1 >> a2 >> b2 >> y2 >> a3 >> b3 >> y3) {
        solve();
    }

    return 0;
}
